// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store'
import './uni.promisify.adaptor'
// uView
import uView from "uview-ui";
Vue.use(uView);
import tools from "./utils/tools.js"
import shareBaseUrl from "@/static/js/shareBaseUrl.js" //H5分享公共路径
import moment from 'moment';
import pointsTips from "@/components/pointsTips/index.vue"//完成任务提示
Vue.component("pointsTips", pointsTips)
import systemPopup from '@/components/systemPopup/index.vue' //未打开系统通知提示弹窗
Vue.component("systemPopup", systemPopup)
Vue.config.productionTip = false



Vue.prototype.$tools = tools; //工具类
Vue.prototype.$store = store; //挂在到Vue实例上
Vue.prototype.$moment = moment; //时间格式化
Vue.prototype.$shareBaseUrl = shareBaseUrl //H5分享公共路径你

// 全局挂载goeasy
import GoEasy from 'goeasy';
Vue.prototype.$goeasy = GoEasy.getInstance({
  host: "hangzhou.goeasy.io", //若是新加坡区域：singapore.goeasy.io
  appkey: "BC-2d04526a2e3843e1a155de771785533c",
  modules: ['pubsub'] //根据需要，传入‘pubsub’或'im’，或数组方式同时传入
});

App.mpType = 'app'
const app = new Vue({
  ...App
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif